<div class="pz-block pz-block-galleryDetail {$blockParams.css}">
    <div class="pz-block-pagination pz-block-pagination-top">
    {if isset($medias.1)}
        <a href="{$medias.1.url}" class="btn-prev">{t}previous media{/t}</a>
    {/if}

    <a href="{$returnUrl}" class="back-to-medias-list" >{t}back to list{/t}</a>

    {if isset($medias.2)}
        <a href="{$medias.2.url}" class="btn-next">{t}next media{/t}</a>
    {/if}
    </div>
    <div class="clear"></div>

    {if $blockParams.displayTitle}
    <h2 class="title">{$media->getTitle()}</h2>
    {/if}

    {if $blockParams.displayDate || $blockParams.displayAuthor}
        <div class="meta">
            {if $blockParams.displayAuthor}
                <span class="author">
                    {assign var='author' value=$media->getAuthor()|fullname}
                    {t 1=$author}By %s{/t}
                </span>
            {/if}
            {if $blockParams.displayDate && $blockParams.displayAuthor} - {/if}
            {if $blockParams.displayDate}
                <span class="date">
                    {date date=$media->getModificationDate()} ({$media->getModificationDate()|since})
                </span>
            {/if}
        </div>
    {/if}

    <div class="media-content">
        <img src="{$media->getFileUrl()}" />
    </div>
    
    <div class="pz-block-pagination pz-block-pagination-bottom">
    {if isset($medias.1)}
        <a href="{$medias.1.url}" class="btn-prev">{t}previous media{/t}</a>
    {/if}

    <a href="{$returnUrl}" class="back-to-medias-list" >{t}back to list{/t}</a>

    {if isset($medias.2)}
        <a href="{$medias.2.url}" class="btn-next">{t}next media{/t}</a>
    {/if}
    </div>
    <div class="clear"></div>
</div>
<div class="pz-block pz-block-socialShare">
	{socialShare}
	<div class="clear"></div>
</div>